cmake_minimum_required(VERSION 2.6)

project(shiokaze-panel)

include_directories(include)
include_directories(.)
include_directories(${CMAKE_CURRENT_BINARY_DIR})

qt4_wrap_cpp(MOC_SOURCES include/Panel.hh
						 include/SettingsWidget.hh
						 include/MenuWidget.hh
						 include/LookAndFeelWidget.hh)

qt4_wrap_ui(FORM_SOURCES ui/SettingsWidget.ui
						 ui/LookAndFeelWidget.ui)

add_executable(shiokaze-panel source/main.cc
							  source/Applet.cc
							  source/Panel.cc
							  source/SettingsWidget.cc
							  source/MenuWidget.cc
							  source/LookAndFeelWidget.cc
							  ${MOC_SOURCES}
							  ${FORM_SOURCES})
target_link_libraries(shiokaze-panel shio ${QT_LIBRARIES})

INSTALL(TARGETS shiokaze-panel
  RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
  LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
  ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
)

INSTALL(FILES data/panel.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/shiokaze/data)
